;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 2.7.0 #4818 (May 31 2007)
; This file generated Mon Apr 30 18:24:00 2012
;--------------------------------------------------------
	.module stack
	.optsdcc -mmcs51 --model-large
	
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl _IRCON2_P2IF
	.globl _IRCON2_UTX0IF
	.globl _IRCON2_UTX1IF
	.globl _IRCON2_P1IF
	.globl _IRCON2_WDTIF
	.globl _CY
	.globl _AC
	.globl _F0
	.globl _RS1
	.globl _RS0
	.globl _OV
	.globl _F1
	.globl _P
	.globl _IRCON_DMAIF
	.globl _IRCON_T1IF
	.globl _IRCON_T2IF
	.globl _IRCON_T3IF
	.globl _IRCON_T4IF
	.globl _IRCON_P0IF
	.globl _IRCON_STIF
	.globl _IEN1_DMAIE
	.globl _IEN1_T1IE
	.globl _IEN1_T2IE
	.globl _IEN1_T3IE
	.globl _IEN1_T4IE
	.globl _IEN1_P0IE
	.globl _IEN0_RFERRIE
	.globl _IEN0_ADCIE
	.globl _IEN0_URX0IE
	.globl _IEN0_URX1IE
	.globl _IEN0_ENCIE
	.globl _IEN0_STIE
	.globl _IEN0_EA
	.globl _EA
	.globl _P2_4
	.globl _P2_3
	.globl _P2_2
	.globl _P2_1
	.globl _P2_0
	.globl _S0CON_ENCIF_0
	.globl _S0CON_ENCIF_1
	.globl _P1_7
	.globl _P1_6
	.globl _P1_5
	.globl _P1_4
	.globl _P1_3
	.globl _P1_2
	.globl _P1_1
	.globl _P1_0
	.globl _TCON_IT0
	.globl _TCON_RFERRIF
	.globl _TCON_IT1
	.globl _TCON_URX0IF
	.globl _TCON_ADCIF
	.globl _TCON_URX1IF
	.globl _P0_0
	.globl _P0_1
	.globl _P0_2
	.globl _P0_3
	.globl _P0_4
	.globl _P0_5
	.globl _P0_6
	.globl _P0_7
	.globl _P2DIR
	.globl _P1DIR
	.globl _P0DIR
	.globl _U1GCR
	.globl _U1UCR
	.globl _U1BAUD
	.globl _U1BUF
	.globl _U1CSR
	.globl _P2INP
	.globl _P1INP
	.globl _P2SEL
	.globl _P1SEL
	.globl _P0SEL
	.globl _ADCCFG
	.globl _PERCFG
	.globl _B
	.globl _T4CC1
	.globl _T4CCTL1
	.globl _T4CC0
	.globl _T4CCTL0
	.globl _T4CTL
	.globl _T4CNT
	.globl _RFIF
	.globl _IRCON2
	.globl _T1CCTL2
	.globl _T1CCTL1
	.globl _T1CCTL0
	.globl _T1CTL
	.globl _T1CNTH
	.globl _T1CNTL
	.globl _RFST
	.globl _ACC
	.globl _T1CC2H
	.globl _T1CC2L
	.globl _T1CC1H
	.globl _T1CC1L
	.globl _T1CC0H
	.globl _T1CC0L
	.globl _RFD
	.globl _TIMIF
	.globl _DMAREQ
	.globl _DMAARM
	.globl _DMA0CFGH
	.globl _DMA0CFGL
	.globl _DMA1CFGH
	.globl _DMA1CFGL
	.globl _DMAIRQ
	.globl _PSW
	.globl _T3CC1
	.globl _T3CCTL1
	.globl _T3CC0
	.globl _T3CCTL0
	.globl _T3CTL
	.globl _T3CNT
	.globl _WDCTL
	.globl _T2CON
	.globl _MEMCTR
	.globl _CLKCON
	.globl _U0GCR
	.globl _U0UCR
	.globl _T2CNF
	.globl _U0BAUD
	.globl _U0BUF
	.globl _IRCON
	.globl _SLEEP
	.globl _RNDH
	.globl _RNDL
	.globl _ADCH
	.globl _ADCL
	.globl _IP1
	.globl _IEN1
	.globl _RCCTL
	.globl _ADCCON3
	.globl _ADCCON2
	.globl _ADCCON1
	.globl _ENCCS
	.globl _ENCDO
	.globl _ENCDI
	.globl _FWDATA
	.globl _FCTL
	.globl _FADDRH
	.globl _FADDRL
	.globl _FWT
	.globl _IP0
	.globl _IEN0
	.globl _IE
	.globl _T2THD
	.globl _T2TLD
	.globl _T2CAPHPH
	.globl _T2CAPLPL
	.globl _T2OF2
	.globl _T2OF1
	.globl _T2OF0
	.globl _P2
	.globl _T2PEROF2
	.globl _T2PEROF1
	.globl _T2PEROF0
	.globl _S1CON
	.globl _IEN2
	.globl _HSRC
	.globl _S0CON
	.globl _ST2
	.globl _ST1
	.globl _ST0
	.globl _T2CMP
	.globl __XPAGE
	.globl _DPS
	.globl _RFIM
	.globl _P1
	.globl _P0INP
	.globl _P1IEN
	.globl _PICTL
	.globl _P2IFG
	.globl _P1IFG
	.globl _P0IFG
	.globl _TCON
	.globl _PCON
	.globl _U0CSR
	.globl _DPH1
	.globl _DPL1
	.globl _DPH0
	.globl _DPL0
	.globl _SP
	.globl _P0
	.globl _stacks
	.globl _events
	.globl _n_buffers
	.globl _buffers
	.globl _RFD_SHADOW
	.globl _RFSTATUS
	.globl _CHIPID
	.globl _CHVER
	.globl _FSMTC1
	.globl _RXFIFOCNT
	.globl _IOCFG3
	.globl _IOCFG2
	.globl _IOCFG1
	.globl _IOCFG0
	.globl _SHORTADDRL
	.globl _SHORTADDRH
	.globl _PANIDL
	.globl _PANIDH
	.globl _IEEE_ADDR7
	.globl _IEEE_ADDR6
	.globl _IEEE_ADDR5
	.globl _IEEE_ADDR4
	.globl _IEEE_ADDR3
	.globl _IEEE_ADDR2
	.globl _IEEE_ADDR1
	.globl _IEEE_ADDR0
	.globl _DACTSTL
	.globl _DACTSTH
	.globl _ADCTSTL
	.globl _ADCTSTH
	.globl _FSMSTATE
	.globl _AGCCTRLL
	.globl _AGCCTRLH
	.globl _MANORL
	.globl _MANORH
	.globl _MANANDL
	.globl _MANANDH
	.globl _FSMTCL
	.globl _FSMTCH
	.globl _RFPWR
	.globl _CSPT
	.globl _CSPCTRL
	.globl _CSPZ
	.globl _CSPY
	.globl _CSPX
	.globl _FSCTRLL
	.globl _FSCTRLH
	.globl _RXCTRL1L
	.globl _RXCTRL1H
	.globl _RXCTRL0L
	.globl _RXCTRL0H
	.globl _TXCTRLL
	.globl _TXCTRLH
	.globl _SYNCWORDL
	.globl _SYNCWORDH
	.globl _RSSIL
	.globl _RSSIH
	.globl _MDMCTRL1L
	.globl _MDMCTRL1H
	.globl _MDMCTRL0L
	.globl _MDMCTRL0H
	.globl _stack_init
	.globl _stack_start
	.globl _stack_buffer_get
	.globl _stack_buffer_free
	.globl _stack_buffer_push
	.globl _stack_buffer_headroom
	.globl _stack_number_get
	.globl _stack_compare_address
	.globl _stack_insert_address_to_buffer
	.globl _stack_check_broadcast
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
	.area RSEG    (DATA)
_P0	=	0x0080
_SP	=	0x0081
_DPL0	=	0x0082
_DPH0	=	0x0083
_DPL1	=	0x0084
_DPH1	=	0x0085
_U0CSR	=	0x0086
_PCON	=	0x0087
_TCON	=	0x0088
_P0IFG	=	0x0089
_P1IFG	=	0x008a
_P2IFG	=	0x008b
_PICTL	=	0x008c
_P1IEN	=	0x008d
_P0INP	=	0x008f
_P1	=	0x0090
_RFIM	=	0x0091
_DPS	=	0x0092
__XPAGE	=	0x0093
_T2CMP	=	0x0094
_ST0	=	0x0095
_ST1	=	0x0096
_ST2	=	0x0097
_S0CON	=	0x0098
_HSRC	=	0x0099
_IEN2	=	0x009a
_S1CON	=	0x009b
_T2PEROF0	=	0x009c
_T2PEROF1	=	0x009d
_T2PEROF2	=	0x009e
_P2	=	0x00a0
_T2OF0	=	0x00a1
_T2OF1	=	0x00a2
_T2OF2	=	0x00a3
_T2CAPLPL	=	0x00a4
_T2CAPHPH	=	0x00a5
_T2TLD	=	0x00a6
_T2THD	=	0x00a7
_IE	=	0x00a8
_IEN0	=	0x00a8
_IP0	=	0x00a9
_FWT	=	0x00ab
_FADDRL	=	0x00ac
_FADDRH	=	0x00ad
_FCTL	=	0x00ae
_FWDATA	=	0x00af
_ENCDI	=	0x00b1
_ENCDO	=	0x00b2
_ENCCS	=	0x00b3
_ADCCON1	=	0x00b4
_ADCCON2	=	0x00b5
_ADCCON3	=	0x00b6
_RCCTL	=	0x00b7
_IEN1	=	0x00b8
_IP1	=	0x00b9
_ADCL	=	0x00ba
_ADCH	=	0x00bb
_RNDL	=	0x00bc
_RNDH	=	0x00bd
_SLEEP	=	0x00be
_IRCON	=	0x00c0
_U0BUF	=	0x00c1
_U0BAUD	=	0x00c2
_T2CNF	=	0x00c3
_U0UCR	=	0x00c4
_U0GCR	=	0x00c5
_CLKCON	=	0x00c6
_MEMCTR	=	0x00c7
_T2CON	=	0x00c8
_WDCTL	=	0x00c9
_T3CNT	=	0x00ca
_T3CTL	=	0x00cb
_T3CCTL0	=	0x00cc
_T3CC0	=	0x00cd
_T3CCTL1	=	0x00ce
_T3CC1	=	0x00cf
_PSW	=	0x00d0
_DMAIRQ	=	0x00d1
_DMA1CFGL	=	0x00d2
_DMA1CFGH	=	0x00d3
_DMA0CFGL	=	0x00d4
_DMA0CFGH	=	0x00d5
_DMAARM	=	0x00d6
_DMAREQ	=	0x00d7
_TIMIF	=	0x00d8
_RFD	=	0x00d9
_T1CC0L	=	0x00da
_T1CC0H	=	0x00db
_T1CC1L	=	0x00dc
_T1CC1H	=	0x00dd
_T1CC2L	=	0x00de
_T1CC2H	=	0x00df
_ACC	=	0x00e0
_RFST	=	0x00e1
_T1CNTL	=	0x00e2
_T1CNTH	=	0x00e3
_T1CTL	=	0x00e4
_T1CCTL0	=	0x00e5
_T1CCTL1	=	0x00e6
_T1CCTL2	=	0x00e7
_IRCON2	=	0x00e8
_RFIF	=	0x00e9
_T4CNT	=	0x00ea
_T4CTL	=	0x00eb
_T4CCTL0	=	0x00ec
_T4CC0	=	0x00ed
_T4CCTL1	=	0x00ee
_T4CC1	=	0x00ef
_B	=	0x00f0
_PERCFG	=	0x00f1
_ADCCFG	=	0x00f2
_P0SEL	=	0x00f3
_P1SEL	=	0x00f4
_P2SEL	=	0x00f5
_P1INP	=	0x00f6
_P2INP	=	0x00f7
_U1CSR	=	0x00f8
_U1BUF	=	0x00f9
_U1BAUD	=	0x00fa
_U1UCR	=	0x00fb
_U1GCR	=	0x00fc
_P0DIR	=	0x00fd
_P1DIR	=	0x00fe
_P2DIR	=	0x00ff
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
	.area RSEG    (DATA)
_P0_7	=	0x0087
_P0_6	=	0x0086
_P0_5	=	0x0085
_P0_4	=	0x0084
_P0_3	=	0x0083
_P0_2	=	0x0082
_P0_1	=	0x0081
_P0_0	=	0x0080
_TCON_URX1IF	=	0x008f
_TCON_ADCIF	=	0x008d
_TCON_URX0IF	=	0x008b
_TCON_IT1	=	0x008a
_TCON_RFERRIF	=	0x0089
_TCON_IT0	=	0x0088
_P1_0	=	0x0090
_P1_1	=	0x0091
_P1_2	=	0x0092
_P1_3	=	0x0093
_P1_4	=	0x0094
_P1_5	=	0x0095
_P1_6	=	0x0096
_P1_7	=	0x0097
_S0CON_ENCIF_1	=	0x0099
_S0CON_ENCIF_0	=	0x0098
_P2_0	=	0x00a0
_P2_1	=	0x00a1
_P2_2	=	0x00a2
_P2_3	=	0x00a3
_P2_4	=	0x00a4
_EA	=	0x00af
_IEN0_EA	=	0x00af
_IEN0_STIE	=	0x00ad
_IEN0_ENCIE	=	0x00ac
_IEN0_URX1IE	=	0x00ab
_IEN0_URX0IE	=	0x00aa
_IEN0_ADCIE	=	0x00a9
_IEN0_RFERRIE	=	0x00a8
_IEN1_P0IE	=	0x00bd
_IEN1_T4IE	=	0x00bc
_IEN1_T3IE	=	0x00bb
_IEN1_T2IE	=	0x00ba
_IEN1_T1IE	=	0x00b9
_IEN1_DMAIE	=	0x00b8
_IRCON_STIF	=	0x00c7
_IRCON_P0IF	=	0x00c5
_IRCON_T4IF	=	0x00c4
_IRCON_T3IF	=	0x00c3
_IRCON_T2IF	=	0x00c2
_IRCON_T1IF	=	0x00c1
_IRCON_DMAIF	=	0x00c0
_P	=	0x00d0
_F1	=	0x00d1
_OV	=	0x00d2
_RS0	=	0x00d3
_RS1	=	0x00d4
_F0	=	0x00d5
_AC	=	0x00d6
_CY	=	0x00d7
_IRCON2_WDTIF	=	0x00ec
_IRCON2_P1IF	=	0x00eb
_IRCON2_UTX1IF	=	0x00ea
_IRCON2_UTX0IF	=	0x00e9
_IRCON2_P2IF	=	0x00e8
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
	.area REG_BANK_0	(REL,OVR,DATA)
	.ds 8
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
	.area DSEG    (DATA)
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
	.area OSEG    (OVR,DATA)
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
	.area ISEG    (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
	.area IABS    (ABS,DATA)
	.area IABS    (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
	.area BSEG    (BIT)
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
	.area PSEG    (PAG,XDATA)
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
	.area XSEG    (XDATA)
_MDMCTRL0H	=	0xdf02
_MDMCTRL0L	=	0xdf03
_MDMCTRL1H	=	0xdf04
_MDMCTRL1L	=	0xdf05
_RSSIH	=	0xdf06
_RSSIL	=	0xdf07
_SYNCWORDH	=	0xdf08
_SYNCWORDL	=	0xdf09
_TXCTRLH	=	0xdf0a
_TXCTRLL	=	0xdf0b
_RXCTRL0H	=	0xdf0c
_RXCTRL0L	=	0xdf0d
_RXCTRL1H	=	0xdf0e
_RXCTRL1L	=	0xdf0f
_FSCTRLH	=	0xdf10
_FSCTRLL	=	0xdf11
_CSPX	=	0xdf12
_CSPY	=	0xdf13
_CSPZ	=	0xdf14
_CSPCTRL	=	0xdf15
_CSPT	=	0xdf16
_RFPWR	=	0xdf17
_FSMTCH	=	0xdf20
_FSMTCL	=	0xdf21
_MANANDH	=	0xdf22
_MANANDL	=	0xdf23
_MANORH	=	0xdf24
_MANORL	=	0xdf25
_AGCCTRLH	=	0xdf26
_AGCCTRLL	=	0xdf27
_FSMSTATE	=	0xdf39
_ADCTSTH	=	0xdf3a
_ADCTSTL	=	0xdf3b
_DACTSTH	=	0xdf3c
_DACTSTL	=	0xdf3d
_IEEE_ADDR0	=	0xdf43
_IEEE_ADDR1	=	0xdf44
_IEEE_ADDR2	=	0xdf45
_IEEE_ADDR3	=	0xdf46
_IEEE_ADDR4	=	0xdf47
_IEEE_ADDR5	=	0xdf48
_IEEE_ADDR6	=	0xdf49
_IEEE_ADDR7	=	0xdf4a
_PANIDH	=	0xdf4b
_PANIDL	=	0xdf4c
_SHORTADDRH	=	0xdf4d
_SHORTADDRL	=	0xdf4e
_IOCFG0	=	0xdf4f
_IOCFG1	=	0xdf50
_IOCFG2	=	0xdf51
_IOCFG3	=	0xdf52
_RXFIFOCNT	=	0xdf53
_FSMTC1	=	0xdf54
_CHVER	=	0xdf60
_CHIPID	=	0xdf61
_RFSTATUS	=	0xdf62
_RFD_SHADOW	=	0xdfd9
_buffers::
	.ds 3
_n_buffers::
	.ds 1
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
	.area XABS    (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG   (XDATA)
_events::
	.ds 3
_stacks::
	.ds 10
	.area HOME    (CODE)
	.area GSINIT0 (CODE)
	.area GSINIT1 (CODE)
	.area GSINIT2 (CODE)
	.area GSINIT3 (CODE)
	.area GSINIT4 (CODE)
	.area GSINIT5 (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area CSEG    (CODE)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area HOME    (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area GSINIT  (CODE)
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME    (CODE)
	.area HOME    (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG    (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_init'
;------------------------------------------------------------
;i                         Allocated to registers r2 
;b                         Allocated to stack - offset 1
;init_addr                 Allocated to stack - offset 4
;------------------------------------------------------------
;	../../Common/stack.c:210: portCHAR stack_init( void )
;	-----------------------------------------
;	 function stack_init
;	-----------------------------------------
_stack_init:
	ar2 = 0x02
	ar3 = 0x03
	ar4 = 0x04
	ar5 = 0x05
	ar6 = 0x06
	ar7 = 0x07
	ar0 = 0x00
	ar1 = 0x01
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x10
	mov	sp,a
;	../../Common/stack.c:215: buffers = xQueueCreate( STACK_BUFFERS_MAX, sizeof( buffer_t * ) );
	mov	a,#0x03
	push	acc
	mov	dpl,#0x08
	lcall	_xQueueCreate
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
	dec	sp
	mov	dptr,#_buffers
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
;	../../Common/stack.c:216: events = xQueueCreate( STACK_BUFFERS_MAX + 8, sizeof( event_t ) );
	mov	a,#0x05
	push	acc
	mov	dpl,#0x10
	lcall	_xQueueCreate
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
	dec	sp
	mov	dptr,#_events
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
;	../../Common/stack.c:217: n_buffers = 0;
	mov	dptr,#_n_buffers
	clr	a
	movx	@dptr,a
;	../../Common/stack.c:219: xTaskCreate( stack_main, "Stack", configMAXIMUM_STACK_SIZE, NULL, STACK_PRIORITY, ( xTaskHandle * )NULL );
	clr	a
	push	acc
	push	acc
	push	acc
	mov	a,#0x02
	push	acc
	clr	a
	push	acc
	push	acc
	push	acc
	mov	a,#0xDC
	push	acc
	clr	a
	push	acc
	mov	a,#__str_0
	push	acc
	mov	a,#(__str_0 >> 8)
	push	acc
	mov	a,#0x80
	push	acc
	mov	dptr,#_stack_main
	lcall	_xTaskCreate
	mov	a,sp
	add	a,#0xf4
	mov	sp,a
;	../../Common/stack.c:226: i = 0;
	mov	r2,#0x00
;	../../Common/stack.c:227: while (i < STACK_BUFFERS_MAX)
00108$:
	cjne	r2,#0x08,00118$
00118$:
	jc	00119$
	ljmp	00110$
00119$:
;	../../Common/stack.c:229: b = pvPortMalloc(sizeof(buffer_t)+BUFFER_SIZE);
	mov	dptr,#0x00AE
	push	ar2
	lcall	_pvPortMalloc
	mov	r3,dpl
	mov	r4,dph
	mov	r5,b
	pop	ar2
	mov	r0,_bp
	inc	r0
	mov	@r0,ar3
	inc	r0
	mov	@r0,ar4
	inc	r0
	mov	@r0,ar5
;	../../Common/stack.c:230: if (b)
	mov	a,r3
	orl	a,r4
	orl	a,r5
	jnz	00120$
	ljmp	00104$
00120$:
;	../../Common/stack.c:232: memset(b, 0, sizeof(buffer_t));
	push	ar2
	mov	r0,_bp
	inc	r0
	mov	@r0,ar3
	inc	r0
	mov	@r0,ar4
	inc	r0
	mov	@r0,ar5
	push	ar2
	push	ar3
	push	ar4
	push	ar5
	mov	a,#0x2E
	push	acc
	clr	a
	push	acc
	clr	a
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_memset
	dec	sp
	dec	sp
	dec	sp
	pop	ar5
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:233: b->size = BUFFER_SIZE;
	mov	a,#0x24
	add	a,r3
	mov	r3,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	mov	a,#0x80
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:234: n_buffers++;
	mov	dptr,#_n_buffers
	movx	a,@dptr
	mov	dptr,#_n_buffers
	inc	a
	movx	@dptr,a
;	../../Common/stack.c:235: if (xQueueSend( buffers, ( void * ) &b,
	mov	r3,_bp
	inc	r3
	mov	r4,#0x00
	mov	r5,#0x40
	mov	dptr,#_buffers
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r2,a
	clr	a
	push	acc
	push	acc
	push	ar3
	push	ar4
	push	ar5
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	lcall	_xQueueSend
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r2
	pop	ar2
;	../../Common/stack.c:241: return pdFALSE;
	jnz	00105$
	mov	dpl,a
	sjmp	00111$
00104$:
;	../../Common/stack.c:249: return pdFALSE;
	mov	dpl,#0x00
	sjmp	00111$
00105$:
;	../../Common/stack.c:251: if (i++ >= STACK_BUFFERS_MIN) i = STACK_BUFFERS_MAX;
	mov	ar3,r2
	inc	r2
	cjne	r3,#0x04,00122$
00122$:
	jnc	00123$
	ljmp	00108$
00123$:
	mov	r2,#0x08
	ljmp	00108$
00110$:
;	../../Common/stack.c:258: socket_init();
	lcall	_socket_init
;	../../Common/stack.c:261: init_addr.addr_type = ADDR_NONE;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/stack.c:262: rf_mac_get(&init_addr);
	mov	a,_bp
	add	a,#0x04
	mov	r2,a
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_rf_mac_get
;	../../Common/stack.c:264: return module_init();
	lcall	_module_init
	mov  r2,dpl
00111$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_start'
;------------------------------------------------------------
;stack_parameters          Allocated to registers r2 r3 r4 
;buffer                    Allocated to registers 
;msg                       Allocated to stack - offset 7
;------------------------------------------------------------
;	../../Common/stack.c:276: start_status_t stack_start(stack_init_t  *stack_parameters)
;	-----------------------------------------
;	 function stack_start
;	-----------------------------------------
_stack_start:
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/stack.c:282: mac_set_mac_pib_parameter(stack_parameters->mac_address, MAC_IEEE_ADDRESS);
	mov	a,#0x06
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	push	ar2
	push	ar3
	push	ar4
	mov	a,#0x01
	push	acc
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_mac_set_mac_pib_parameter
	dec	sp
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:284: switch(stack_parameters->type)
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	jz	00108$
	sjmp	00102$
00108$:
;	../../Common/stack.c:289: mac_handle_address_decoder(RF_DECODER_ON);
	mov	dpl,#0x02
	lcall	_mac_handle_address_decoder
;	../../Common/stack.c:290: rf_802_15_4_ip_layer_address_mode_set(0);
	mov	dpl,#0x00
	lcall	_rf_802_15_4_ip_layer_address_mode_set
;	../../Common/stack.c:294: return START_SUCCESS;
	mov	dpl,#0x00
;	../../Common/stack.c:296: default:
;	../../Common/stack.c:297: return TYPE_NOT_SUPPORTED;
;	../../Common/stack.c:389: return START_SUCCESS;
	ret
00102$:
	mov	dpl,#0x01
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_main'
;------------------------------------------------------------
;pvParameters              Allocated to registers 
;event                     Allocated to stack - offset 1
;xLastWakeTime             Allocated to stack - offset 6
;------------------------------------------------------------
;	../../Common/stack.c:401: void stack_main ( void *pvParameters )
;	-----------------------------------------
;	 function stack_main
;	-----------------------------------------
_stack_main:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x07
	mov	sp,a
;	../../Common/stack.c:408: xLastWakeTime = xTaskGetTickCount();
	lcall	_xTaskGetTickCount
	mov	r2,dpl
	mov	r3,dph
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,ar2
	inc	r0
	mov	@r0,ar3
;	../../Common/stack.c:410: vTaskDelayUntil( &xLastWakeTime, 200 / portTICK_RATE_MS );
	mov	a,_bp
	add	a,#0x06
	mov	r2,a
	mov	r3,#0x00
	mov	r4,#0x40
	mov	a,#0xC8
	push	acc
	clr	a
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_vTaskDelayUntil
	dec	sp
	dec	sp
;	../../Common/stack.c:412: if ( ( buffers == 0 ) || (events == 0) )
	mov	dptr,#_buffers
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	mov	a,r2
	orl	a,r3
	orl	a,r4
	jz	00110$
	mov	dptr,#_events
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	mov	a,r2
	orl	a,r3
	orl	a,r4
	jnz	00113$
00110$:
;	../../Common/stack.c:419: vTaskDelayUntil( &xLastWakeTime, 5000 / portTICK_RATE_MS );
	mov	a,_bp
	add	a,#0x06
	mov	r2,a
	mov	r3,#0x00
	mov	r4,#0x40
	mov	a,#0x88
	push	acc
	mov	a,#0x13
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_vTaskDelayUntil
	dec	sp
	dec	sp
	sjmp	00110$
00113$:
;	../../Common/stack.c:436: if (xQueueReceive(events, &( event ), 5000 / portTICK_RATE_MS) == pdTRUE)
	mov	r2,_bp
	inc	r2
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dptr,#_events
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	a,#0x88
	push	acc
	mov	a,#0x13
	push	acc
	push	ar2
	push	ar3
	push	ar4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_xQueueReceive
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	cjne	r2,#0x01,00113$
;	../../Common/stack.c:438: if (event.process == 0)
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	dec	r0
	mov	a,r2
	orl	a,r3
	jnz	00105$
;	../../Common/stack.c:440: stack_buffer((buffer_t *) event.param);
	mov	a,_bp
	inc	a
	add	a,#0x02
	mov	r0,a
	mov	ar4,@r0
	inc	r0
	mov	ar5,@r0
	inc	r0
	mov	ar6,@r0
	dec	r0
	dec	r0
	mov	dpl,r4
	mov	dph,r5
	mov	b,r6
	lcall	_stack_buffer
	sjmp	00113$
00105$:
;	../../Common/stack.c:444: event.process(event.param);
	mov	a,_bp
	inc	a
	add	a,#0x02
	mov	r0,a
	mov	ar4,@r0
	inc	r0
	mov	ar5,@r0
	inc	r0
	mov	ar6,@r0
	dec	r0
	dec	r0
	push	ar2
	push	ar3
	mov	a,#00127$
	push	acc
	mov	a,#(00127$ >> 8)
	push	acc
	push	ar2
	push	ar3
	mov	dpl,r4
	mov	dph,r5
	mov	b,r6
	ret
00127$:
	pop	ar3
	pop	ar2
	ljmp	00113$
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_buffer'
;------------------------------------------------------------
;b                         Allocated to stack - offset 1
;status                    Allocated to registers r2 
;i                         Allocated to stack - offset 4
;found                     Allocated to registers 
;si                        Allocated to stack - offset 5
;j                         Allocated to stack - offset 8
;next_layer                Allocated to stack - offset 9
;j                         Allocated to registers r5 
;sloc0                     Allocated to stack - offset 13
;sloc1                     Allocated to stack - offset 10
;sloc2                     Allocated to stack - offset 13
;------------------------------------------------------------
;	../../Common/stack.c:463: void stack_buffer(buffer_t *b)
;	-----------------------------------------
;	 function stack_buffer
;	-----------------------------------------
_stack_buffer:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x0e
	mov	sp,a
;	../../Common/stack.c:468: socket_t *si = (socket_t *) b->socket;
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r5,a
	inc	dptr
	lcall	__gptrget
	mov	r6,a
	inc	dptr
	lcall	__gptrget
	mov	r7,a
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,ar5
	inc	r0
	mov	@r0,ar6
	inc	r0
	mov	@r0,ar7
;	../../Common/stack.c:470: if (b == 0) return;
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00102$
	ljmp	00184$
00102$:
;	../../Common/stack.c:472: if ( ((si != 0) && (si->stack_id == STACKS_MAX)) || (b->options.type == BUFFER_CONTROL) )
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	cjne	@r0,#0x00,00231$
	inc	r0
	cjne	@r0,#0x00,00231$
	inc	r0
	cjne	@r0,#0x00,00231$
	sjmp	00127$
00231$:
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	clr	a
	cjne	r2,#0x02,00232$
	inc	a
00232$:
	jnz	00124$
00127$:
	mov	r0,_bp
	inc	r0
	mov	a,#0x26
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	clr	a
	cjne	r5,#0x01,00235$
	inc	a
00235$:
	jnz	00237$
	ljmp	00125$
00237$:
00124$:
;	../../Common/stack.c:477: if ((b->to == MODULE_NONE) || (b->to == MODULE_APP))
	mov	r0,_bp
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r2,a
	jz	00117$
	cjne	r2,#0x0B,00239$
	sjmp	00240$
00239$:
	ljmp	00118$
00240$:
00117$:
;	../../Common/stack.c:479: switch(b->dir)
	push	ar5
	push	ar6
	push	ar7
	mov	r0,_bp
	inc	r0
	mov	a,#0x1F
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r2,a
	clr	a
	cjne	r2,#0x00,00241$
	inc	a
00241$:
	pop	ar7
	pop	ar6
	pop	ar5
	jnz	00107$
	cjne	r2,#0x01,00244$
	sjmp	00245$
00244$:
	ljmp	00118$
00245$:
;	../../Common/stack.c:485: if (si) b->to = si->protocol;
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jz	00105$
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
	sjmp	00118$
00105$:
;	../../Common/stack.c:488: stack_buffer_free(b);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/stack.c:489: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/stack.c:491: break;
;	../../Common/stack.c:493: case BUFFER_UP:
	sjmp	00118$
00107$:
;	../../Common/stack.c:494: if ((si))
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jz	00114$
;	../../Common/stack.c:496: if(socket_up(b) == pdTRUE)
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_socket_up
	mov	r5,dpl
	cjne	r5,#0x01,00118$
;	../../Common/stack.c:501: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
	sjmp	00118$
00114$:
;	../../Common/stack.c:506: if(socket_up(b) == pdTRUE)
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_socket_up
	mov	r5,dpl
	cjne	r5,#0x01,00111$
;	../../Common/stack.c:511: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
	sjmp	00118$
00111$:
;	../../Common/stack.c:515: stack_buffer_free(b);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/stack.c:516: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/stack.c:520: }
00118$:
;	../../Common/stack.c:522: if (b)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jz	00123$
;	../../Common/stack.c:525: if (module_call(b->to, b) == pdFALSE)
	mov	r0,_bp
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	dpl,r5
	lcall	_module_call
	mov	r5,dpl
	dec	sp
	dec	sp
	dec	sp
	mov	a,r5
	jnz	00123$
;	../../Common/stack.c:530: stack_buffer_free(b);               					 
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
00123$:
;	../../Common/stack.c:533: return;
	ljmp	00184$
00125$:
;	../../Common/stack.c:536: if ((b->to != MODULE_NONE) && (b->to != MODULE_APP))
	mov	r0,_bp
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	jz	00181$
	cjne	r5,#0x0B,00255$
	sjmp	00181$
00255$:
;	../../Common/stack.c:541: if (module_call(b->to, b) == pdFALSE)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	dpl,r5
	lcall	_module_call
	mov	r5,dpl
	dec	sp
	dec	sp
	dec	sp
	mov	a,r5
	jz	00256$
	ljmp	00184$
00256$:
;	../../Common/stack.c:546: stack_buffer_free(b);               					 
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
	ljmp	00184$
00181$:
;	../../Common/stack.c:549: else if (b->dir == BUFFER_DOWN)
	mov	r0,_bp
	inc	r0
	mov	a,#0x1F
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	cjne	r5,#0x01,00257$
	sjmp	00258$
00257$:
	ljmp	00178$
00258$:
;	../../Common/stack.c:554: if (si)
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00259$
	ljmp	00214$
00259$:
;	../../Common/stack.c:559: if ((b->from == MODULE_APP) || (b->from == MODULE_NRP))
	mov	r0,_bp
	inc	r0
	mov	a,#0x1D
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r2,a
	cjne	r2,#0x0B,00260$
	sjmp	00136$
00260$:
	cjne	r2,#0x05,00206$
00136$:
;	../../Common/stack.c:561: b->from = stacks[si->stack_id].layers;
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	mov	b,#0x05
	mul	ab
	add	a,#_stacks
	mov	dpl,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r3,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
;	../../Common/stack.c:562: stack_module_call(si->stack_id, (b->from) - 1, b);
	dec	r3
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	push	ar3
	mov	dpl,r2
	lcall	_stack_module_call
	mov	a,sp
	add	a,#0xfc
	mov	sp,a
;	../../Common/stack.c:563: b=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
	ljmp	00138$
;	../../Common/stack.c:568: while ( (i < stacks[si->stack_id].layers) && b)
00206$:
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
00133$:
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r6,a
	mov	b,#0x05
	mul	ab
	mov	r7,a
	add	a,#_stacks
	mov	dpl,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	dph,a
	push	ar2
	push	ar3
	push	ar4
	movx	a,@dptr
	mov	r2,a
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	clr	c
	mov	a,@r0
	subb	a,r2
	pop	ar4
	pop	ar3
	pop	ar2
	jc	00263$
	ljmp	00138$
00263$:
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00264$
	ljmp	00138$
00264$:
;	../../Common/stack.c:570: if (stacks[si->stack_id].module[i] == (module_id_t) b->from)
	push	ar2
	push	ar3
	push	ar4
	mov	a,r7
	add	a,#_stacks
	mov	r7,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r2,a
	inc	r7
	cjne	r7,#0x00,00265$
	inc	r2
00265$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	add	a,r7
	mov	r7,a
	clr	a
	addc	a,r2
	mov	r2,a
	mov	r0,_bp
	inc	r0
	mov	a,#0x1D
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	__gptrget
	mov	r3,a
	mov	dpl,r7
	mov	dph,r2
	movx	a,@dptr
	mov	r7,a
	cjne	a,ar3,00266$
	mov	a,#0x01
	sjmp	00267$
00266$:
	clr	a
00267$:
	pop	ar4
	pop	ar3
	pop	ar2
	jz	00131$
;	../../Common/stack.c:572: stack_module_call(si->stack_id, i-1, b);
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	dec	a
	mov	r5,a
	push	ar2
	push	ar3
	push	ar4
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	push	ar5
	mov	dpl,r6
	lcall	_stack_module_call
	mov	a,sp
	add	a,#0xfc
	mov	sp,a
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:573: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00131$:
;	../../Common/stack.c:575: i++;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	ljmp	00133$
00138$:
;	../../Common/stack.c:578: if(b)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00269$
	ljmp	00184$
00269$:
;	../../Common/stack.c:583: stack_buffer_free(b);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/stack.c:584: b=0;
	ljmp	00184$
;	../../Common/stack.c:593: while (b && (stacks[i].layers > 0) )
00214$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
00149$:
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00270$
	ljmp	00151$
00270$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	mov	b,#0x05
	mul	ab
	mov	r3,a
	add	a,#_stacks
	mov	r4,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r5,a
	mov	dpl,r4
	mov	dph,r5
	movx	a,@dptr
	jnz	00271$
	ljmp	00151$
00271$:
;	../../Common/stack.c:597: while ( (j < stacks[i].layers) && b)
	mov	a,r3
	mov	r4,a
	add	a,#_stacks
	mov	r3,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r5,a
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	mov	@r0,#0x01
00145$:
	mov	dpl,r3
	mov	dph,r5
	movx	a,@dptr
	mov	r7,a
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	clr	c
	mov	a,@r0
	subb	a,r7
	jc	00272$
	ljmp	00147$
00272$:
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00273$
	ljmp	00147$
00273$:
;	../../Common/stack.c:599: if (stacks[i].module[j] == (module_id_t) b->from)
	push	ar3
	push	ar5
	mov	a,r4
	add	a,#_stacks
	mov	r7,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r3,a
	inc	r7
	cjne	r7,#0x00,00274$
	inc	r3
00274$:
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	mov	a,@r0
	add	a,r7
	mov	r7,a
	clr	a
	addc	a,r3
	mov	r3,a
	mov	r0,_bp
	inc	r0
	mov	a,#0x1D
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar6,@r0
	mov	dpl,r5
	mov	dph,r2
	mov	b,r6
	lcall	__gptrget
	mov	r5,a
	mov	dpl,r7
	mov	dph,r3
	movx	a,@dptr
	mov	r7,a
	cjne	a,ar5,00275$
	mov	a,#0x01
	sjmp	00276$
00275$:
	clr	a
00276$:
	pop	ar5
	pop	ar3
	jz	00143$
;	../../Common/stack.c:604: stack_module_call(i, j-1, b);
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	mov	a,@r0
	dec	a
	mov	r2,a
	push	ar3
	push	ar4
	push	ar5
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	push	ar2
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	lcall	_stack_module_call
	mov	a,sp
	add	a,#0xfc
	mov	sp,a
	pop	ar5
	pop	ar4
	pop	ar3
;	../../Common/stack.c:605: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00143$:
;	../../Common/stack.c:607: j++;
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	inc	@r0
	ljmp	00145$
00147$:
;	../../Common/stack.c:609: i++;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	ljmp	00149$
00151$:
;	../../Common/stack.c:612: if (b)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00278$
	ljmp	00184$
00278$:
;	../../Common/stack.c:617: stack_buffer_free(b);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
	ljmp	00184$
00178$:
;	../../Common/stack.c:629: status = socket_up(b);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_socket_up
	mov	r2,dpl
;	../../Common/stack.c:630: if (status != pdTRUE)
	cjne	r2,#0x01,00279$
	ljmp	00172$
00279$:
;	../../Common/stack.c:632: while (b && (stacks[i].layers > 0))
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
00168$:
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00280$
	ljmp	00172$
00280$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	mov	b,#0x05
	mul	ab
	mov	r4,a
	add	a,#_stacks
	mov	r5,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	movx	a,@dptr
	jnz	00281$
	ljmp	00172$
00281$:
;	../../Common/stack.c:639: j=0;
	mov	r5,#0x00
;	../../Common/stack.c:640: next_layer = LAYERS_MAX + 1 ;
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x05
;	../../Common/stack.c:641: while (j < (stacks[i].layers-1))
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,#0x1D
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	ar7,r4
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,r4
	add	a,#_stacks
	mov	@r0,a
	clr	a
	addc	a,#(_stacks >> 8)
	inc	r0
	mov	@r0,a
00160$:
	push	ar2
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	movx	a,@dptr
	mov	r4,a
	mov	r2,#0x00
	dec	r4
	cjne	r4,#0xff,00282$
	dec	r2
00282$:
	mov	ar6,r5
	mov	r3,#0x00
	clr	c
	mov	a,r6
	subb	a,r4
	mov	a,r3
	xrl	a,#0x80
	mov	b,r2
	xrl	b,#0x80
	subb	a,b
	clr	a
	rlc	a
	pop	ar2
	jz	00162$
;	../../Common/stack.c:646: if (stacks[i].module[j] == (module_id_t) b->from)
	mov	a,r7
	add	a,#_stacks
	mov	r3,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r4,a
	inc	r3
	cjne	r3,#0x00,00284$
	inc	r4
00284$:
	mov	a,r5
	add	a,r3
	mov	r3,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r6,a
	mov	dpl,r3
	mov	dph,r4
	movx	a,@dptr
	mov	r3,a
	cjne	a,ar6,00158$
;	../../Common/stack.c:648: next_layer = j+1;
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,r5
	inc	a
	mov	@r0,a
;	../../Common/stack.c:649: j = stacks[i].layers;
	mov	a,r7
	add	a,#_stacks
	mov	dpl,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r3,a
	mov	ar5,r3
	sjmp	00160$
00158$:
;	../../Common/stack.c:651: else j++;
	inc	r5
	sjmp	00160$
00162$:
;	../../Common/stack.c:653: if (next_layer != (LAYERS_MAX + 1))
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	cjne	@r0,#0x05,00287$
	sjmp	00166$
00287$:
;	../../Common/stack.c:658: status = stack_module_check(i, next_layer, b);
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	lcall	_stack_module_check
	mov	r3,dpl
	mov	a,sp
	add	a,#0xfc
	mov	sp,a
	mov	ar2,r3
;	../../Common/stack.c:659: if (status == pdTRUE)
	cjne	r2,#0x01,00166$
;	../../Common/stack.c:661: stack_module_call(i, next_layer, b);
	push	ar2
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	lcall	_stack_module_call
	mov	a,sp
	add	a,#0xfc
	mov	sp,a
	pop	ar2
;	../../Common/stack.c:662: b = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00166$:
;	../../Common/stack.c:665: i++;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	ljmp	00168$
00172$:
;	../../Common/stack.c:669: if (status != pdTRUE)
	cjne	r2,#0x01,00290$
	sjmp	00184$
00290$:
;	../../Common/stack.c:683: if (b != 0) stack_buffer_free(b);
	mov	r0,_bp
	inc	r0
	cjne	@r0,#0x00,00291$
	inc	r0
	cjne	@r0,#0x00,00291$
	inc	r0
	cjne	@r0,#0x00,00291$
	sjmp	00184$
00291$:
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
00184$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_module_call'
;------------------------------------------------------------
;layer                     Allocated to stack - offset -3
;b                         Allocated to stack - offset -6
;stack_id                  Allocated to registers r2 
;i                         Allocated to registers r4 
;found                     Allocated to registers r3 
;------------------------------------------------------------
;	../../Common/stack.c:698: void stack_module_call(uint8_t stack_id, uint8_t layer, buffer_t *b)
;	-----------------------------------------
;	 function stack_module_call
;	-----------------------------------------
_stack_module_call:
	push	_bp
	mov	_bp,sp
	mov	r2,dpl
;	../../Common/stack.c:701: uint8_t found = 0;
	mov	r3,#0x00
;	../../Common/stack.c:702: if (layer < stacks[stack_id].layers)
	mov	a,r2
	mov	b,#0x05
	mul	ab
	mov	r2,a
	add	a,#_stacks
	mov	dpl,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r4,a
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	clr	c
	mov	a,@r0
	subb	a,r4
	jc	00118$
	ljmp	00111$
00118$:
;	../../Common/stack.c:705: while(modules[i].id)
	mov	a,r2
	add	a,#_stacks
	mov	r2,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r4,a
	inc	r2
	cjne	r2,#0x00,00119$
	inc	r4
00119$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,@r0
	mov	r5,a
	add	a,r2
	mov	dpl,a
	clr	a
	addc	a,r4
	mov	dph,a
	movx	a,@dptr
	mov	r2,a
	mov	r4,#0x00
00104$:
	mov	a,r4
	mov	b,#0x0D
	mul	ab
	add	a,#_modules
	mov	r5,a
	mov	a,#(_modules >> 8)
	addc	a,b
	mov	r6,a
	mov	a,#0x08
	add	a,r5
	mov	dpl,a
	clr	a
	addc	a,r6
	mov	dph,a
	movx	a,@dptr
	mov	r7,a
	jz	00106$
;	../../Common/stack.c:707: if (modules[i].id == stacks[stack_id].module[layer])
	mov	a,r7
	cjne	a,ar2,00102$
;	../../Common/stack.c:709: found = 1;
	mov	r3,#0x01
;	../../Common/stack.c:710: modules[i].handle(b);
	mov	dpl,r5
	mov	dph,r6
	inc	dptr
	inc	dptr
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	push	ar3
	push	ar5
	push	ar6
	mov	a,#00123$
	push	acc
	mov	a,#(00123$ >> 8)
	push	acc
	push	ar5
	push	ar6
	mov	a,_bp
	add	a,#0xfa
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	ret
00123$:
	pop	ar6
	pop	ar5
	pop	ar3
;	../../Common/stack.c:711: break;
	sjmp	00106$
00102$:
;	../../Common/stack.c:713: else i++;
	inc	r4
	sjmp	00104$
00106$:
;	../../Common/stack.c:715: if (!found)
	mov	a,r3
	jnz	00111$
;	../../Common/stack.c:720: stack_buffer_free(b);
	mov	a,_bp
	add	a,#0xfa
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
00111$:
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_module_check'
;------------------------------------------------------------
;layer                     Allocated to stack - offset -3
;b                         Allocated to stack - offset -6
;stack_id                  Allocated to registers r2 
;i                         Allocated to registers r3 
;found                     Allocated to registers 
;------------------------------------------------------------
;	../../Common/stack.c:732: portCHAR stack_module_check(uint8_t stack_id, uint8_t layer, buffer_t *b)
;	-----------------------------------------
;	 function stack_module_check
;	-----------------------------------------
_stack_module_check:
	push	_bp
	mov	_bp,sp
;	../../Common/stack.c:737: if (layer < stacks[stack_id].layers)
	mov	a,dpl
	mov	b,#0x05
	mul	ab
	mov	r2,a
	add	a,#_stacks
	mov	dpl,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r3,a
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	clr	c
	mov	a,@r0
	subb	a,r3
	jc	00115$
	ljmp	00108$
00115$:
;	../../Common/stack.c:740: while(modules[i].id)
	mov	a,r2
	add	a,#_stacks
	mov	r2,a
	clr	a
	addc	a,#(_stacks >> 8)
	mov	r3,a
	inc	r2
	cjne	r2,#0x00,00116$
	inc	r3
00116$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,@r0
	mov	r4,a
	add	a,r2
	mov	dpl,a
	clr	a
	addc	a,r3
	mov	dph,a
	movx	a,@dptr
	mov	r2,a
	mov	r3,#0x00
00104$:
	mov	a,r3
	mov	b,#0x0D
	mul	ab
	add	a,#_modules
	mov	r4,a
	mov	a,#(_modules >> 8)
	addc	a,b
	mov	r5,a
	mov	a,#0x08
	add	a,r4
	mov	dpl,a
	clr	a
	addc	a,r5
	mov	dph,a
	movx	a,@dptr
	mov	r6,a
	jz	00108$
;	../../Common/stack.c:742: if (modules[i].id == stacks[stack_id].module[layer])
	mov	a,r6
	cjne	a,ar2,00102$
;	../../Common/stack.c:745: return modules[i].check(b);
	mov	dpl,r4
	mov	dph,r5
	inc	dptr
	inc	dptr
	inc	dptr
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
	push	ar5
	mov	a,#00120$
	push	acc
	mov	a,#(00120$ >> 8)
	push	acc
	push	ar4
	push	ar5
	mov	a,_bp
	add	a,#0xfa
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	ret
00120$:
	mov	r4,dpl
	pop	ar5
	mov	dpl,r4
	sjmp	00109$
00102$:
;	../../Common/stack.c:747: else i++;
	inc	r3
	sjmp	00104$
00108$:
;	../../Common/stack.c:750: return pdFALSE;
	mov	dpl,#0x00
00109$:
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_buffer_get'
;------------------------------------------------------------
;blocktime                 Allocated to stack - offset 1
;b                         Allocated to stack - offset 3
;sloc0                     Allocated to stack - offset 6
;------------------------------------------------------------
;	../../Common/stack.c:760: buffer_t* stack_buffer_get ( portTickType blocktime )
;	-----------------------------------------
;	 function stack_buffer_get
;	-----------------------------------------
_stack_buffer_get:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	mov	a,sp
	add	a,#0x07
	mov	sp,a
;	../../Common/stack.c:764: if (xQueueReceive( buffers, &( b ), 0) == pdTRUE)
	mov	a,_bp
	add	a,#0x03
	mov	r4,a
	mov	r5,#0x00
	mov	r6,#0x40
	mov	dptr,#_buffers
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	clr	a
	push	acc
	push	acc
	push	ar4
	push	ar5
	push	ar6
	mov	dpl,r7
	mov	dph,r2
	mov	b,r3
	lcall	_xQueueReceive
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	cjne	r2,#0x01,00109$
;	../../Common/stack.c:766: b->options.type = BUFFER_DATA;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:767: b->dir = BUFFER_DOWN;
	mov	a,#0x1F
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/stack.c:768: b->socket = 0;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:769: b->options.lowpan_compressed=0;
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	a,#0x05
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:770: return b;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	ljmp	00111$
00109$:
;	../../Common/stack.c:772: else if (n_buffers < STACK_BUFFERS_MAX)
	mov	dptr,#_n_buffers
	movx	a,@dptr
	mov	r2,a
	cjne	r2,#0x08,00119$
00119$:
	jc	00120$
	ljmp	00106$
00120$:
;	../../Common/stack.c:774: b = pvPortMalloc(sizeof(buffer_t)+BUFFER_SIZE);
	mov	dptr,#0x00AE
	lcall	_pvPortMalloc
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/stack.c:775: if (b)
	mov	a,r2
	orl	a,r3
	orl	a,r4
	jnz	00121$
	ljmp	00110$
00121$:
;	../../Common/stack.c:777: memset(b, 0, sizeof(buffer_t));
	mov	ar5,r2
	mov	ar6,r3
	mov	ar7,r4
	push	ar2
	push	ar3
	push	ar4
	mov	a,#0x2E
	push	acc
	clr	a
	push	acc
	clr	a
	push	acc
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_memset
	dec	sp
	dec	sp
	dec	sp
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:778: b->options.type = BUFFER_DATA;
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:779: b->dir = BUFFER_DOWN;
	mov	a,#0x1F
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/stack.c:780: b->size = BUFFER_SIZE;
	mov	a,#0x24
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x80
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:781: b->options.lowpan_compressed=0;
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	a,#0x05
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:782: n_buffers++;
	mov	dptr,#_n_buffers
	movx	a,@dptr
	mov	r5,a
	mov	dptr,#_n_buffers
	inc	a
	movx	@dptr,a
;	../../Common/stack.c:783: return b;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	ljmp	00111$
00106$:
;	../../Common/stack.c:786: else if (xQueueReceive( buffers, &( b ), blocktime / portTICK_RATE_MS) == pdTRUE)
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	clr	a
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,ar2
	inc	r0
	mov	@r0,ar3
	mov	a,_bp
	add	a,#0x03
	mov	r4,a
	mov	r5,#0x00
	mov	r6,#0x40
	mov	dptr,#_buffers
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	push	ar4
	push	ar5
	push	ar6
	mov	dpl,r7
	mov	dph,r2
	mov	b,r3
	lcall	_xQueueReceive
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	cjne	r2,#0x01,00110$
;	../../Common/stack.c:788: b->options.type = BUFFER_DATA;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:789: b->dir = BUFFER_DOWN;
	mov	a,#0x1F
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/stack.c:790: b->socket = 0;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:791: b->options.lowpan_compressed=0;
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	a,#0x05
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:792: return b;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	sjmp	00111$
00110$:
;	../../Common/stack.c:794: return 0;
	mov	dptr,#0x0000
	mov	b,#0x00
00111$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_buffer_free'
;------------------------------------------------------------
;b                         Allocated to stack - offset 1
;------------------------------------------------------------
;	../../Common/stack.c:833: void stack_buffer_free ( buffer_t *b )
;	-----------------------------------------
;	 function stack_buffer_free
;	-----------------------------------------
_stack_buffer_free:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
;	../../Common/stack.c:835: b->buf_ptr = 0;
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x20
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:836: b->buf_end = 0;
	mov	a,#0x22
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:837: b->socket = 0;
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:838: b->from = 0;
	mov	a,#0x1D
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:839: b->to = 0;
	mov	a,#0x1E
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:840: b->options.lowpan_compressed=0;
	mov	a,#0x26
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	mov	a,#0x05
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	clr	a
	lcall	__gptrput
;	../../Common/stack.c:852: xQueueSend( buffers, ( void * ) &b, ( portTickType ) 0 );
	mov	r2,_bp
	inc	r2
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dptr,#_buffers
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	a
	push	acc
	push	acc
	push	ar2
	push	ar3
	push	ar4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_xQueueSend
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_buffer_push'
;------------------------------------------------------------
;b                         Allocated to registers r2 r3 r4 
;event                     Allocated to stack - offset 1
;------------------------------------------------------------
;	../../Common/stack.c:864: portCHAR stack_buffer_push( buffer_t * b)
;	-----------------------------------------
;	 function stack_buffer_push
;	-----------------------------------------
_stack_buffer_push:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x05
	mov	sp,a
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/stack.c:867: event.process = 0;
	mov	a,_bp
	inc	a
	mov	r0,a
	mov	@r0,#0x00
	inc	r0
	mov	@r0,#0x00
;	../../Common/stack.c:868: event.param = (void *) b;
	mov	r5,_bp
	inc	r5
	mov	a,#0x02
	add	a,r5
	mov	r0,a
	mov	@r0,ar2
	inc	r0
	mov	@r0,ar3
	inc	r0
	mov	@r0,ar4
;	../../Common/stack.c:870: return xQueueSend( events, ( void * ) &event, ( portTickType ) 0 );
	mov	r2,#0x00
	mov	r3,#0x40
	mov	dptr,#_events
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	a
	push	acc
	push	acc
	push	ar5
	push	ar2
	push	ar3
	mov	dpl,r4
	mov	dph,r6
	mov	b,r7
	lcall	_xQueueSend
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	dpl,r2
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_buffer_headroom'
;------------------------------------------------------------
;size                      Allocated to stack - offset -4
;b                         Allocated to stack - offset 1
;sloc0                     Allocated to stack - offset 4
;sloc1                     Allocated to stack - offset 6
;sloc2                     Allocated to stack - offset 9
;sloc3                     Allocated to stack - offset 11
;sloc4                     Allocated to stack - offset 14
;------------------------------------------------------------
;	../../Common/stack.c:882: portCHAR stack_buffer_headroom( buffer_t * b, uint16_t size)
;	-----------------------------------------
;	 function stack_buffer_headroom
;	-----------------------------------------
_stack_buffer_headroom:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x10
	mov	sp,a
;	../../Common/stack.c:884: if (b->buf_ptr < size)
	mov	r0,_bp
	inc	r0
	mov	a,#0x20
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	lcall	__gptrget
	mov	@r0,a
	inc	dptr
	lcall	__gptrget
	inc	r0
	mov	@r0,a
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,_bp
	add	a,#0xfc
	mov	r1,a
	clr	c
	mov	a,@r0
	subb	a,@r1
	inc	r0
	mov	a,@r0
	inc	r1
	subb	a,@r1
	jc	00109$
	ljmp	00104$
00109$:
;	../../Common/stack.c:886: if ((b->buf_end + size) >  b->size)
	push	ar5
	push	ar6
	push	ar7
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	mov	a,#0x22
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,_bp
	add	a,#0x09
	mov	r1,a
	lcall	__gptrget
	mov	@r1,a
	inc	dptr
	lcall	__gptrget
	inc	r1
	mov	@r1,a
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,_bp
	add	a,#0xfc
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	mov	r5,a
	inc	r1
	mov	a,@r1
	inc	r0
	addc	a,@r0
	mov	r6,a
	mov	r0,_bp
	inc	r0
	mov	a,#0x24
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar3,@r0
	mov	dpl,r7
	mov	dph,r2
	mov	b,r3
	lcall	__gptrget
	mov	r7,a
	inc	dptr
	lcall	__gptrget
	mov	r2,a
	clr	c
	mov	a,r7
	subb	a,r5
	mov	a,r2
	subb	a,r6
	clr	a
	rlc	a
	pop	ar7
	pop	ar6
	pop	ar5
	jz	00102$
;	../../Common/stack.c:888: return pdFALSE;
	mov	dpl,#0x00
	ljmp	00105$
00102$:
;	../../Common/stack.c:892: buffer_data_length(b));
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,_bp
	add	a,#0x04
	mov	r1,a
	mov	a,@r0
	clr	c
	subb	a,@r1
	mov	@r0,a
	inc	r0
	mov	a,@r0
	inc	r1
	subb	a,@r1
	mov	@r0,a
;	../../Common/stack.c:891: &(b->buf[b->buf_ptr]), 
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,#0x2C
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	a,_bp
	add	a,#0x04
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	push	acc
	inc	r1
	mov	a,@r1
	inc	r0
	addc	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x10
	mov	r0,a
	pop	acc
	mov	@r0,a
	dec	r0
	pop	acc
	mov	@r0,a
	dec	r0
	pop	acc
	mov	@r0,a
;	../../Common/stack.c:890: memmove(&(b->buf[(b->buf_ptr)+size]), 
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	ar2,@r0
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	add	a,r2
	push	acc
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	pop	acc
	add	a,@r0
	mov	r2,a
	inc	r0
	clr	a
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	push	ar5
	push	ar6
	push	ar7
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x0e
	mov	r0,a
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_memmove
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	pop	ar7
	pop	ar6
	pop	ar5
;	../../Common/stack.c:893: b->buf_end += size;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	inc	dptr
	lcall	__gptrget
	mov	r3,a
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	add	a,r2
	mov	r2,a
	inc	r0
	mov	a,@r0
	addc	a,r3
	mov	r3,a
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r2
	lcall	__gptrput
	inc	dptr
	mov	a,r3
	lcall	__gptrput
;	../../Common/stack.c:894: b->buf_ptr += size;
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r2,a
	inc	dptr
	lcall	__gptrget
	mov	r3,a
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	add	a,r2
	mov	r2,a
	inc	r0
	mov	a,@r0
	addc	a,r3
	mov	r3,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,r2
	lcall	__gptrput
	inc	dptr
	mov	a,r3
	lcall	__gptrput
00104$:
;	../../Common/stack.c:896: return pdTRUE;
	mov	dpl,#0x01
00105$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_number_get'
;------------------------------------------------------------
;------------------------------------------------------------
;	../../Common/stack.c:904: uint8_t stack_number_get()
;	-----------------------------------------
;	 function stack_number_get
;	-----------------------------------------
_stack_number_get:
;	../../Common/stack.c:906: return STACKS_MAX;
	mov	dpl,#0x02
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_compare_address'
;------------------------------------------------------------
;a2                        Allocated to stack - offset -5
;a1                        Allocated to stack - offset 1
;size                      Allocated to stack - offset 4
;pan                       Allocated to stack - offset 6
;match                     Allocated to stack - offset 10
;i                         Allocated to stack - offset 11
;tmp_type                  Allocated to registers r7 
;dptr                      Allocated to stack - offset 12
;tmp_addr                  Allocated to stack - offset 15
;cmp_size                  Allocated to registers r2 
;sloc0                     Allocated to stack - offset 18
;sloc1                     Allocated to stack - offset 21
;------------------------------------------------------------
;	../../Common/stack.c:920: portCHAR stack_compare_address(sockaddr_t *a1, sockaddr_t *a2)
;	-----------------------------------------
;	 function stack_compare_address
;	-----------------------------------------
_stack_compare_address:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x17
	mov	sp,a
;	../../Common/stack.c:922: uint8_t size[2] = {0,0};
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
	inc	a
	mov	r1,a
	mov	@r1,#0x00
;	../../Common/stack.c:923: uint16_t pan[2] = {0xFFFF,0xFFFF};
	mov	a,_bp
	add	a,#0x06
	mov	r5,a
	push	ar0
	mov	r0,ar5
	mov	@r0,#0xFF
	inc	r0
	mov	@r0,#0xFF
	mov	a,#0x02
	add	a,r5
	mov	r6,a
	mov	r0,ar6
	mov	@r0,#0xFF
	inc	r0
	mov	@r0,#0xFF
;	../../Common/stack.c:924: uint8_t match = 0;
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/stack.c:930: for (i=0; i<2; i++)
	mov	a,_bp
	add	a,#0xfb
	mov	r0,a
	push	ar1
	mov	a,_bp
	add	a,#0x0f
	mov	r1,a
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	pop	ar1
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	@r0,#0x00
	pop	ar0
00134$:
	push	ar0
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	cjne	@r0,#0x02,00155$
00155$:
	pop	ar0
	jc	00156$
	ljmp	00137$
00156$:
;	../../Common/stack.c:932: uint8_t *dptr = 0;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/stack.c:935: if (i==0)
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	a,@r0
	pop	ar0
	jnz	00102$
;	../../Common/stack.c:936: { tmp_type = a1->addr_type;
	push	ar0
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r7,a
;	../../Common/stack.c:937: tmp_addr = a1;
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	pop	ar0
	sjmp	00103$
00102$:
;	../../Common/stack.c:940: { tmp_type = a2->addr_type;
	push	ar6
	push	ar0
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r6,a
	mov	ar7,r6
;	../../Common/stack.c:941: tmp_addr = a2;
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	pop	ar0
;	../../Common/stack.c:1011: return pdTRUE;
	pop	ar6
;	../../Common/stack.c:941: tmp_addr = a2;
00103$:
;	../../Common/stack.c:944: switch(tmp_type)
	mov	a,r7
	add	a,#0xff - 0x08
	jnc	00158$
	ljmp	00112$
00158$:
	mov	a,r7
	add	a,r7
	add	a,r7
	mov	dptr,#00159$
	jmp	@a+dptr
00159$:
	ljmp	00111$
	ljmp	00107$
	ljmp	00105$
	ljmp	00104$
	ljmp	00106$
	ljmp	00108$
	ljmp	00109$
	ljmp	00112$
	ljmp	00110$
;	../../Common/stack.c:946: case ADDR_802_15_4_PAN_SHORT:
00104$:
;	../../Common/stack.c:947: dptr = tmp_addr->address;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
;	../../Common/stack.c:948: dptr += 2;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x02
	add	a,@r0
	mov	@r0,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	@r0,a
	pop	ar0
;	../../Common/stack.c:949: case ADDR_802_15_4_SHORT:
00105$:
;	../../Common/stack.c:950: size[i] = 2;
	push	ar1
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r1
	add	a,r0
	mov	r7,a
	pop	ar1
	push	ar0
	mov	r0,ar7
	mov	@r0,#0x02
	pop	ar0
;	../../Common/stack.c:951: break;
;	../../Common/stack.c:953: case ADDR_802_15_4_PAN_LONG:
	sjmp	00112$
00106$:
;	../../Common/stack.c:954: dptr = tmp_addr->address;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
;	../../Common/stack.c:955: dptr += 8;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x08
	add	a,@r0
	mov	@r0,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	@r0,a
	pop	ar0
;	../../Common/stack.c:956: case ADDR_802_15_4_LONG:
00107$:
;	../../Common/stack.c:957: size[i] = 8;
	push	ar1
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r1
	add	a,r0
	mov	r7,a
	pop	ar1
	push	ar0
	mov	r0,ar7
	mov	@r0,#0x08
	pop	ar0
;	../../Common/stack.c:958: break;
;	../../Common/stack.c:960: case ADDR_SHORT:
	sjmp	00112$
00108$:
;	../../Common/stack.c:961: size[i] = 1;
	push	ar1
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r1
	add	a,r0
	mov	r7,a
	pop	ar1
	push	ar0
	mov	r0,ar7
	mov	@r0,#0x01
	pop	ar0
;	../../Common/stack.c:962: break;
;	../../Common/stack.c:964: case ADDR_PAN:
	sjmp	00112$
00109$:
;	../../Common/stack.c:965: dptr = tmp_addr->address;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	pop	ar0
;	../../Common/stack.c:966: case ADDR_BROADCAST:
00110$:
;	../../Common/stack.c:967: case ADDR_NONE:
00111$:
;	../../Common/stack.c:968: size[i] = 0;
	push	ar1
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r1
	add	a,r0
	mov	r7,a
	pop	ar1
	push	ar0
	mov	r0,ar7
	mov	@r0,#0x00
	pop	ar0
;	../../Common/stack.c:970: }
00112$:
;	../../Common/stack.c:971: if (dptr)
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	pop	ar0
	jz	00136$
;	../../Common/stack.c:973: pan[i] = *dptr++;
	push	ar6
	push	ar0
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	a,@r0
	add	a,acc
	add	a,r5
	mov	r7,a
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r6,a
	inc	dptr
	dec	r0
	dec	r0
	mov	@r0,dpl
	inc	r0
	mov	@r0,dph
	mov	r2,#0x00
	mov	r0,ar7
	mov	@r0,ar6
	inc	r0
	mov	@r0,ar2
;	../../Common/stack.c:974: pan[i] <<= 8;
	mov	ar2,r6
	mov	r6,#0x00
	mov	r0,ar7
	mov	@r0,ar6
	inc	r0
	mov	@r0,ar2
;	../../Common/stack.c:975: pan[i] = *dptr++;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	mov	r3,#0x00
	mov	r0,ar7
	mov	@r0,ar2
	inc	r0
	mov	@r0,ar3
	pop	ar0
;	../../Common/stack.c:1011: return pdTRUE;
	pop	ar6
;	../../Common/stack.c:975: pan[i] = *dptr++;
00136$:
;	../../Common/stack.c:930: for (i=0; i<2; i++)
	push	ar0
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	inc	@r0
	pop	ar0
	ljmp	00134$
00137$:
;	../../Common/stack.c:979: if (stack_check_broadcast(a1->address, a1->addr_type) == pdTRUE)
	push	ar0
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	mov	r0,_bp
	inc	r0
	mov	a,#0x01
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar7,@r0
	pop	ar0
	push	ar5
	push	ar6
	push	ar0
	push	ar1
	push	ar2
	mov	dpl,r3
	mov	dph,r4
	mov	b,r7
	lcall	_stack_check_broadcast
	mov	r2,dpl
	dec	sp
	pop	ar1
	pop	ar0
	pop	ar6
	pop	ar5
	cjne	r2,#0x01,00116$
;	../../Common/stack.c:981: match = 1;
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x01
	pop	ar0
00116$:
;	../../Common/stack.c:983: if (stack_check_broadcast(a2->address, a2->addr_type) == pdTRUE)
	push	ar0
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar7,@r0
	pop	ar0
	push	ar5
	push	ar6
	push	ar0
	push	ar1
	push	ar2
	mov	dpl,r3
	mov	dph,r4
	mov	b,r7
	lcall	_stack_check_broadcast
	mov	r2,dpl
	dec	sp
	pop	ar1
	pop	ar0
	pop	ar6
	pop	ar5
	cjne	r2,#0x01,00118$
;	../../Common/stack.c:985: match = 1;
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x01
	pop	ar0
00118$:
;	../../Common/stack.c:988: if (!match)
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	pop	ar0
	jz	00165$
	ljmp	00125$
00165$:
;	../../Common/stack.c:991: if (size[0] > size[1]) cmp_size = size[1];
	mov	ar2,@r0
	mov	ar3,@r1
	clr	c
	mov	a,r3
	subb	a,r2
	jnc	00120$
	mov	ar2,@r1
	sjmp	00121$
00120$:
;	../../Common/stack.c:992: else 	cmp_size = size[0];
	mov	ar3,@r0
	mov	ar2,r3
00121$:
;	../../Common/stack.c:993: if (memcmp(a2->address, a1->address, cmp_size) == 0)
	push	ar6
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	@r0,ar2
	inc	r0
	mov	@r0,#0x00
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	a,#0x01
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	push	ar5
	push	ar6
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_memcmp
	mov	r2,dpl
	mov	r3,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	pop	ar6
	pop	ar5
	pop	ar6
	mov	a,r2
	orl	a,r3
	jnz	00125$
;	../../Common/stack.c:995: match = 1;
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x01
00125$:
;	../../Common/stack.c:999: if (match)
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	jz	00132$
;	../../Common/stack.c:1001: if ((pan[0] != 0xFFFF) && (pan[1] != 0xFFFF))
	mov	r0,ar5
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	cjne	r2,#0xFF,00169$
	cjne	r3,#0xFF,00169$
	sjmp	00133$
00169$:
	mov	r0,ar6
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	cjne	r2,#0xFF,00170$
	cjne	r3,#0xFF,00170$
	sjmp	00133$
00170$:
;	../../Common/stack.c:1003: if (pan[0] != pan[1]) return pdFALSE;
	mov	r0,ar5
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	mov	r0,ar6
	mov	ar4,@r0
	inc	r0
	mov	ar5,@r0
	mov	a,r2
	cjne	a,ar4,00171$
	mov	a,r3
	cjne	a,ar5,00171$
	sjmp	00133$
00171$:
	mov	dpl,#0x00
	sjmp	00138$
00132$:
;	../../Common/stack.c:1008: return pdFALSE;
	mov	dpl,#0x00
	sjmp	00138$
00133$:
;	../../Common/stack.c:1011: return pdTRUE;
	mov	dpl,#0x01
00138$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_insert_address_to_buffer'
;------------------------------------------------------------
;ind                       Allocated to stack - offset -3
;type                      Allocated to stack - offset -4
;address                   Allocated to stack - offset -7
;buf                       Allocated to registers r2 r3 r4 
;i                         Allocated to registers r6 
;sloc0                     Allocated to stack - offset 1
;sloc1                     Allocated to stack - offset 4
;sloc2                     Allocated to stack - offset 7
;------------------------------------------------------------
;	../../Common/stack.c:1023: uint8_t stack_insert_address_to_buffer(buffer_t *buf, uint8_t ind, addrtype_t type, address_t address)
;	-----------------------------------------
;	 function stack_insert_address_to_buffer
;	-----------------------------------------
_stack_insert_address_to_buffer:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x09
	mov	sp,a
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/stack.c:1026: if(type == ADDR_802_15_4_PAN_LONG || type == ADDR_802_15_4_LONG )
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	clr	a
	cjne	@r0,#0x04,00132$
	inc	a
00132$:
	mov	r5,a
	jnz	00108$
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	cjne	@r0,#0x01,00135$
	sjmp	00136$
00135$:
	ljmp	00109$
00136$:
00108$:
;	../../Common/stack.c:1028: if(type == ADDR_802_15_4_PAN_LONG)
	mov	a,r5
	jnz	00137$
	ljmp	00125$
00137$:
;	../../Common/stack.c:1030: buf->buf[ind++] = address[8];
	mov	a,#0x2C
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	push	ar2
	push	ar3
	push	ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	r0,_bp
	inc	r0
	mov	a,r2
	add	a,r5
	mov	@r0,a
	clr	a
	addc	a,r6
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar7
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,#0x08
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r2
	lcall	__gptrput
;	../../Common/stack.c:1031: buf->buf[ind++] = address[9];
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	a,r2
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,#0x09
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
;	../../Common/stack.c:1054: return ind;
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:1033: for (i = 0; i < 8; i++)
00125$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x2C
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r3,#0x00
00112$:
	cjne	r3,#0x08,00138$
00138$:
	jc	00139$
	ljmp	00130$
00139$:
;	../../Common/stack.c:1035: buf->buf[ind++] = address[i];
	mov	ar6,r2
	inc	r2
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,_bp
	add	a,#0x07
	mov	r1,a
	mov	a,r6
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,r3
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r5
	lcall	__gptrput
;	../../Common/stack.c:1033: for (i = 0; i < 8; i++)
	inc	r3
	sjmp	00112$
00109$:
;	../../Common/stack.c:1038: else if(type == ADDR_802_15_4_PAN_SHORT  || type == ADDR_802_15_4_SHORT)
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	clr	a
	cjne	@r0,#0x03,00140$
	inc	a
00140$:
	mov	r5,a
	jnz	00105$
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	cjne	@r0,#0x02,00143$
	sjmp	00144$
00143$:
	ljmp	00110$
00144$:
00105$:
;	../../Common/stack.c:1040: if(type == ADDR_802_15_4_PAN_SHORT)
	mov	a,r5
	jnz	00145$
	ljmp	00129$
00145$:
;	../../Common/stack.c:1042: buf->buf[ind++] = address[2];
	mov	a,#0x2C
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	push	ar2
	push	ar3
	push	ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,r2
	add	a,r5
	mov	@r0,a
	clr	a
	addc	a,r6
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar7
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,#0x02
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r2
	lcall	__gptrput
;	../../Common/stack.c:1043: buf->buf[ind++] = address[3];
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	a,r2
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
;	../../Common/stack.c:1054: return ind;
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/stack.c:1045: for (i = 0; i < 2; i++)
00129$:
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,#0x2C
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar5,@r0
	mov	r6,#0x00
00116$:
	cjne	r6,#0x02,00146$
00146$:
	jnc	00131$
;	../../Common/stack.c:1047: buf->buf[ind++] = address[i];
	mov	ar7,r5
	inc	r5
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,_bp
	add	a,#0x04
	mov	r1,a
	mov	a,r7
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0xf9
	mov	r0,a
	mov	a,r6
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r2
	lcall	__gptrget
	mov	r3,a
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r3
	lcall	__gptrput
;	../../Common/stack.c:1045: for (i = 0; i < 2; i++)
	inc	r6
	sjmp	00116$
00130$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	@r0,ar2
;	../../Common/stack.c:1054: return ind;
;	../../Common/stack.c:1045: for (i = 0; i < 2; i++)
	sjmp	00110$
00131$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	@r0,ar5
00110$:
;	../../Common/stack.c:1054: return ind;
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	dpl,@r0
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'stack_check_broadcast'
;------------------------------------------------------------
;type                      Allocated to stack - offset -3
;address                   Allocated to stack - offset 1
;i                         Allocated to registers r6 
;len                       Allocated to registers r5 
;------------------------------------------------------------
;	../../Common/stack.c:1065: portCHAR stack_check_broadcast(address_t address, addrtype_t type)
;	-----------------------------------------
;	 function stack_check_broadcast
;	-----------------------------------------
_stack_check_broadcast:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
;	../../Common/stack.c:1067: uint8_t i, len=4;
	mov	r5,#0x04
;	../../Common/stack.c:1068: if(type==ADDR_802_15_4_PAN_LONG || type==ADDR_802_15_4_LONG)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x04,00119$
	sjmp	00101$
00119$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x01,00102$
00101$:
;	../../Common/stack.c:1069: len=8;
	mov	r5,#0x08
00102$:
;	../../Common/stack.c:1070: if(type==ADDR_SHORT)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x05,00118$
;	../../Common/stack.c:1071: len=2;
	mov	r5,#0x02
;	../../Common/stack.c:1072: for(i=0; i<len; i++)
00118$:
	mov	r6,#0x00
00108$:
	clr	c
	mov	a,r6
	subb	a,r5
	jnc	00111$
;	../../Common/stack.c:1074: if(address[i] != 0xff)
	push	ar5
	mov	r0,_bp
	inc	r0
	mov	a,r6
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r5,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r7
	mov	dph,r5
	mov	b,r2
	lcall	__gptrget
	mov	r7,a
	clr	a
	cjne	r7,#0xFF,00125$
	inc	a
00125$:
	pop	ar5
;	../../Common/stack.c:1076: return pdFALSE;
	jnz	00110$
	mov	dpl,a
	sjmp	00112$
00110$:
;	../../Common/stack.c:1072: for(i=0; i<len; i++)
	inc	r6
	sjmp	00108$
00111$:
;	../../Common/stack.c:1079: return pdTRUE;
	mov	dpl,#0x01
00112$:
	mov	sp,_bp
	pop	_bp
	ret
	.area CSEG    (CODE)
	.area CONST   (CODE)
__str_0:
	.ascii "Stack"
	.db 0x00
	.area XINIT   (CODE)
__xinit__events:
; generic printIvalPtr
	.byte #0x00,#0x00,#0x00
__xinit__stacks:
	.db #0x03
	.db #0x08
	.db #0x01
	.db #0x02
	.db 0x00
	.db #0x00
	.db #0x00
	.db 0x00
	.db 0x00
	.db 0x00
	.area CABS    (ABS,CODE)
